package com.hxd.otc.module.wallet.bean;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * Created by lzy on 2018/9/21 0021.
 * description ${钱包币种}
 */
public class WalletCurrencyBean implements Serializable {

    private String coinId;// 币种ID
    private String id;// // 用户的币种资产主键ID
    private String symbol;// OTC币种code
    private String name;// 常规币种code
    public double volume; // 币币账户可用资产
    public double advertVolume; // 广告冻结资产
    public double lockVolume;// 用户提现需要冻结资产

    public double otcAdvertVolume; // 广告冻结资产
    public double otcLockVolume;// 用户提现需要冻结资产

    public double bailVolume; // 保证金,所有手续费的出产生的交易 都冲从这里扣除

    public int tokenStatus;  // 充值提现状态  9：不可以充值提现 1 ：可以充值 可以提现 2：仅可以充值 3：仅可以提现
    public int status;    // 状态 9 ：下架0：发布中 1：上架'
    public String exMinVolume;// 最低挂单数量
    public double withdrawMinVolume; // 一次提现最低数量
    public double withdrawMaxVolume;// 一次提现最大数量
    public double withdrawDayMaxVolume; // 一天最大提现额度
    public double withdrawFee;//提现手续费
    public int withdrawFeeType;// 0:按比例 1：固定
    public int coinType; // '1:基于以太  2:基于量子 3：基于小蚂 4：基于EOS'
    public boolean isCheck;

    public String getCoinId() {
        return coinId;
    }

    public void setCoinId(String coinId) {
        this.coinId = coinId;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getVolume() {
        return volume;
    }

    public void setVolume(double volume) {
        this.volume = volume;
    }

    public double getAdvertVolume() {
        return advertVolume;
    }

    public void setAdvertVolume(double advertVolume) {
        this.advertVolume = advertVolume;
    }

    public double getLockVolume() {
        return lockVolume;
    }

    public void setLockVolume(double lockVolume) {
        this.lockVolume = lockVolume;
    }

    public double getOtcAdvertVolume() {
        return otcAdvertVolume;
    }

    public void setOtcAdvertVolume(double otcAdvertVolume) {
        this.otcAdvertVolume = otcAdvertVolume;
    }

    public double getOtcLockVolume() {
        return otcLockVolume;
    }

    public void setOtcLockVolume(double otcLockVolume) {
        this.otcLockVolume = otcLockVolume;
    }

    public double getBailVolume() {
        return bailVolume;
    }

    public void setBailVolume(double bailVolume) {
        this.bailVolume = bailVolume;
    }

    public int getTokenStatus() {
        return tokenStatus;
    }

    public void setTokenStatus(int tokenStatus) {
        this.tokenStatus = tokenStatus;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getExMinVolume() {
        return exMinVolume;
    }

    public void setExMinVolume(String exMinVolume) {
        this.exMinVolume = exMinVolume;
    }

    public double getWithdrawMinVolume() {
        return withdrawMinVolume;
    }

    public void setWithdrawMinVolume(double withdrawMinVolume) {
        this.withdrawMinVolume = withdrawMinVolume;
    }

    public double getWithdrawMaxVolume() {
        return withdrawMaxVolume;
    }

    public void setWithdrawMaxVolume(double withdrawMaxVolume) {
        this.withdrawMaxVolume = withdrawMaxVolume;
    }

    public double getWithdrawDayMaxVolume() {
        return withdrawDayMaxVolume;
    }

    public void setWithdrawDayMaxVolume(double withdrawDayMaxVolume) {
        this.withdrawDayMaxVolume = withdrawDayMaxVolume;
    }

    public double getWithdrawFee() {
        return withdrawFee;
    }

    public void setWithdrawFee(double withdrawFee) {
        this.withdrawFee = withdrawFee;
    }

    public int getWithdrawFeeType() {
        return withdrawFeeType;
    }

    public void setWithdrawFeeType(int withdrawFeeType) {
        this.withdrawFeeType = withdrawFeeType;
    }

    public int getCoinType() {
        return coinType;
    }

    public void setCoinType(int coinType) {
        this.coinType = coinType;
    }

    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    public String getName() {
        if (TextUtils.isEmpty(name))
            return symbol;
        return name;
    }

    public String getId() {
        if (TextUtils.isEmpty(id))
            return coinId;
        return id;
    }

    @Override
    public String toString() {
        return "WalletCurrencyBean{" +
                "coinId='" + coinId + '\'' +
                ", id='" + id + '\'' +
                ", symbol='" + symbol + '\'' +
                ", name='" + name + '\'' +
                ", volume=" + volume +
                ", advertVolume=" + advertVolume +
                ", lockVolume=" + lockVolume +
                ", otcAdvertVolume=" + otcAdvertVolume +
                ", otcLockVolume=" + otcLockVolume +
                ", bailVolume=" + bailVolume +
                ", tokenStatus=" + tokenStatus +
                ", status=" + status +
                ", exMinVolume='" + exMinVolume + '\'' +
                ", withdrawMinVolume=" + withdrawMinVolume +
                ", withdrawMaxVolume=" + withdrawMaxVolume +
                ", withdrawDayMaxVolume=" + withdrawDayMaxVolume +
                ", withdrawFee=" + withdrawFee +
                ", withdrawFeeType=" + withdrawFeeType +
                ", coinType=" + coinType +
                ", isCheck=" + isCheck +
                '}';
    }
}
